package Common.Filters;

public class SymbolFilter implements IFilter
{
	public String ApplyFilter(String word)
	{
		if(word == null)
			return word;
		
		StringBuilder str = new StringBuilder();
		
		for(int i=0; i<word.length(); i++)
			if(Character.isLetterOrDigit(word.charAt(i)))
                            str.append(word.charAt(i));
                        else
                            return null;
		
                return str.toString();
		/*
		if(str.toString().length() == 0 || str.toString().trim().equals(""))
			return null;
		else
			return str.toString();
                 */
	}
}
